<template>
    <div id="app">
        <!--      HelloWorld组件标签  msg 传递参数-->
<!--        <HelloWorld :msg="message"/>-->
<!--        <student-view></student-view>-->
<!--        <teacher-view></teacher-view>-->
       <p><router-link to="/hello">hello</router-link></p>
       <p><router-link to="/teacher">teacher</router-link></p>
       <p><router-link to="/student">student</router-link></p>
<!--        路由出口-->
        <router-view></router-view>
    </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import StudentView from "@/components/StudentView.vue";
import TeacherView from "@/components/TeacherView.vue";
export default {
    name: 'App',
    data: function () {
        return{
            message:'这是我的第一个vue脚手架项目'
        }
    },
    components: {
        HelloWorld,
        TeacherView,
        StudentView
    }
}
</script>

<style>
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}
</style>
